import request from '@/utils/request'

/**
 *获取sConfigure的数据
 * @param queryField
 * @returns {AxiosPromise}
 */
export function getConfigureCd(query) {
  return request({
    url: '/web-api/base/sConfigure/selectList',
    method: 'get',
    params: query
  })
}
/**
 *
 * @param queryField
 * @returns {AxiosPromise}
 */
export function getProjectDepartmentByCd(query) {
  return request({
    url: '/web-api/base/department/list',
    method: 'get',
    params: query
  })
}
/**
 *
 * @param queryField
 * @returns {AxiosPromise}
 */
export function getEnterpriseByCd(query) {
  return request({
    url: '/web-api/base/enterprise/list',
    method: 'get',
    params: query
  })
}

/**
 *
 * @param queryField
 * @returns {AxiosPromise}
 */
export function getEquipmentByCd(query) {
  return request({
    url: '/web-api/base/equipment/list',
    method: 'get',
    params: query
  })
}
/**
 *
 * @param queryField
 * @returns {AxiosPromise}
 */
export function getInfoByCd(query) {
  return request({
    url: '/web-api/base/info/list',
    method: 'get',
    params: query
  })
}
/**
 *
 * @param queryField
 * @returns {AxiosPromise}
 */
export function getPersonnel(pid) {
  return request({
    url: '/web-api/system/user/getProjectPersonnel',
    method: 'get',
    params: pid
  })
}
/**
 *
 * @param
 * @returns {AxiosPromise}
 */
export function getOutletR(query) {
  return request({
    url: '/web-api/base/outlet/listByCd',
    method: 'get',
    params: query
  })
}

/**
 *outletId 排口ID
 * name 设备类型名称
 * @param
 * @returns {AxiosPromise}
 */
export function getEquipmentIdsR(query) {
  return request({
    url: '/web-api/base/tOutletEquipment/selectTEquipmentType',
    method: 'get',
    params: query
  })
}
/**
 * 文本提示表查询
 * @param TTextPrompt对象
 * @returns {AxiosPromise}
 */
export function getTextPromptR(query) {
  return request({
    url: '/web-api/base/t-text-prompt/list',
    method: 'get',
    params: query
  })
}
